﻿CREATE TABLE [dbo].[OrderSplitInfo] (
    [OrderID]     VARCHAR (32)   NOT NULL,
    [SplitReason] NVARCHAR (200) NULL,
    [SplitTime]   DATETIME       NOT NULL,
    [UserID]      BIGINT         NOT NULL,
    CONSTRAINT [FK_OrderSplitInfo_ToTable] FOREIGN KEY ([OrderID]) REFERENCES [dbo].[OrderBaseInfo] ([OrderID])
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderSplitInfo', @level2type = N'COLUMN', @level2name = N'UserID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'拆分时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderSplitInfo', @level2type = N'COLUMN', @level2name = N'SplitTime';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'拆分原因', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderSplitInfo', @level2type = N'COLUMN', @level2name = N'SplitReason';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'订单标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderSplitInfo', @level2type = N'COLUMN', @level2name = N'OrderID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'订单拆分详情', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderSplitInfo';

